import requests
# headers={}
class TestBoys:
    def test_login(self):
        login_data = {
            "username": "admin",
            "password": "123456"
        }
        resp = requests.post("http://localhost:8888/login", data=login_data)
        print(resp.json())
        global  headers
        headers = {
            "Authorization": resp.json()['Authorization']
        }
    def test_boys_list(self):
        resp = requests.get("http://localhost:8888/boys/", headers=headers)
        print(resp.json())


